package com.fenqing.comics;

import com.fenqing.comics.utils.ApplicationContextUtils;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 主程序入口
 * @author fenqing
 */
@SpringBootApplication
@MapperScan("com.fenqing.comics.dao.mapper")
@EnableScheduling
public class ComicsMain {

    public static void main(String[] args) {
        ApplicationContext applicationContext = SpringApplication.run(ComicsMain.class, args);
        ApplicationContextUtils.setApplicationContext(applicationContext);
    }

}
